package com.yunyi.dm.decorator;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 抽象构建角色
 *
 * @author yunyi
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public abstract class FastFood {
    /**
     * 价格
     */
    private float price;
    /**
     * 描述
     */
    private String desc;

    /**
     * 消耗
     * @return 消耗
     */
    abstract float cost();
}
